package com.leo.neo4j;

import com.leo.neo4j.mysql.User;
import com.leo.neo4j.mysql.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    UserMapper userMapper;
    @GetMapping
    public User get(){
        User user=  userMapper.getAdminUserByAcount();
        System.out.println("mysql success");
        return user;
    }
}
